%%%-------------------------------------------------------------------
%%% @author admin
%%% @copyright (C) 2021, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 31. 十二月 2021 11:43
%%%-------------------------------------------------------------------
-module(pl_svr_sup).
-author("admin").
-behaviour(supervisor).

%% API
-export([init/1, start_link/0]).

start_link() ->
    supervisor:start_link({local, ?MODULE}, ?MODULE, []).


% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules}
init(Args) ->
    {ok, { {simple_one_for_one, 0, 1}, [pl_svr, {pl_svr, start_link, Args}, temporary, 10000, worker,[pl_svr]]} }.